<!DOCTYPE html>
<html class="no-js" lang="zh_CN">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">

    <title>${system_admin_title}</title>
    #required_css
</head>

<body>#loading
<div class="app $!layout">
    <!-- 头部菜单 -->
    #header
    <section class="layout">
        <!-- 菜单 -->
        #sidebar
        <!-- 内容主体 -->
        <section class="container">
            <section class="main-content">
                <div class="content-wrap">
                    <div class="wrapper">
                        <table class="table">
                            <thead>
                            <tr>
                                <th>SessionID</th>
                                <th>登录账户</th>
                                <th>真实姓名</th>
                                <th>登录IP地址</th>
                                <th>登录时间</th>
                                <th>客户端指纹</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            #foreach($!obj in $!sessionMap.entrySet())
                            #set($session = $!obj.value)
                            <tr>
                                <td>$!session.id
                                #if($!session.id == $!sid)
                                    <span class="label label-warning">本机</span>
                                    #end
                                </td>
                                #set($user = $!session.getAttribute($!key))
                                <td>$!user.userName</td>
                                <td>$!user.realName</td>
                                <td>$!session.getAttribute("ip-addr")</td>
                                <td>$!session.getAttribute("login-time")</td>
                                <td>$!session.getAttribute("user-agent")</td>
                                <td>
                                    <a class="text-primary text-underline" href="online/offline?key=$!obj.key">强制下线</a>
                                </td>
                            </tr>
                            #end
                            </tbody>
                        </table>
                    </div>
                </div>
                <a class="exit-offscreen"></a>
            </section>
        </section>
    </section>
</div>
#required_js
#loading_close
</body>
</html>
